import request from '@/utils/request'

// 查询显示端与部门关联列表
export function listDept(query) {
  return request({
    url: '/manage/dept/list',
    method: 'get',
    params: query
  })
}

// 查询显示端与部门关联详细
export function getDept(displayId) {
  return request({
    url: '/manage/dept/' + displayId,
    method: 'get'
  })
}

// 新增显示端与部门关联
export function addDept(data) {
  return request({
    url: '/manage/dept',
    method: 'post',
    data: data
  })
}

// 修改显示端与部门关联
export function updateDept(data) {
  return request({
    url: '/manage/dept',
    method: 'put',
    data: data
  })
}

// 删除显示端与部门关联
export function delDept(displayId) {
  return request({
    url: '/manage/dept/' + displayId,
    method: 'delete'
  })
}
